package com.xjrsoft.module.system.enums;

import lombok.Getter;

/**
 * @author wwn
 * @date 2024年12月13日 16:08
 */
@Getter
public enum RoleTypeEnum {
    masses(1866789585078505473L, "1867484796985331713"),
    center(1866423894909415426L, "1866788523659546626"),
    dept(1866789535896096770L, "1867483554083033090"),
    ;
    private final Long roleId;
    private final String OrgId;

    RoleTypeEnum(final Long roleId, final String orgId) {
        this.roleId = roleId;
        this.OrgId = orgId;
    }

    public Long getRoleId() {
        return this.roleId;
    }

    public String getOrgId() {
        return this.OrgId;
    }

    public static RoleTypeEnum of(String type) {
        for (RoleTypeEnum value : RoleTypeEnum.values()) {
            if (value.name().equals(type)) {
                return value;
            }
        }
        return null;
    }
}
